package com.gitee.mars.tourserver.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gitee.mars.tourserver.entity.User;
import com.gitee.mars.tourserver.request.UserRequest;
import com.gitee.mars.tourserver.response.UserResponse;

/**
 * User 接口
 *
 * @Author wq
 * @Date 2021-03-16
 **/
public interface IUserService extends IService<User> {


    /**
     * 登录
     *
     * @param request request
     * @return UserResponse
     */
    UserResponse login(UserRequest request);

    /**
     * 注册
     *
     * @param request request
     * @return UserResponse
     */
    UserResponse register(UserRequest request);
}
